From: memoryleak47 Date: Thu, 5 Apr 2018 01:45:15 +0000 (+0200) Subject: fixed a few typos X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~1^2~96^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=57a7e12679e23a1e3eeadbcb96113aae4c6c58f1;p=cargo.git fixed a few typos --- diff --git a/src/cargo/core/resolver/mod.rs b/src/cargo/core/resolver/mod.rs index 0e123ded5..fdb9aee30 100644 --- a/src/cargo/core/resolver/mod.rs +++ b/src/cargo/core/resolver/mod.rs @@ -776,7 +776,7 @@ impl RemainingCandidates { // Alright we've entirely exhausted our list of candidates. If we've got // something stashed away return that here (also indicating that there's - // nothign else). If nothing is stashed away we return the list of all + // nothing else). If nothing is stashed away we return the list of all // conflicting activations, if any. // // TODO: can the `conflicting_prev_active` clone be avoided here? should diff --git a/src/cargo/core/workspace.rs b/src/cargo/core/workspace.rs index 9377b185c..7bb9be948 100644 --- a/src/cargo/core/workspace.rs +++ b/src/cargo/core/workspace.rs @@ -72,7 +72,7 @@ pub struct Workspace<'cfg> { // cases `false` also results in the non-enforcement of dev-dependencies. require_optional_deps: bool, - // A cache of lodaed packages for particular paths which is disjoint from + // A cache of loaded packages for particular paths which is disjoint from // `packages` up above, used in the `load` method down below. loaded_packages: RefCell>, } diff --git a/src/cargo/ops/cargo_rustc/fingerprint.rs b/src/cargo/ops/cargo_rustc/fingerprint.rs index 5208874ce..d4b5e4ee7 100644 --- a/src/cargo/ops/cargo_rustc/fingerprint.rs +++ b/src/cargo/ops/cargo_rustc/fingerprint.rs @@ -787,7 +787,7 @@ fn filename<'a, 'cfg>(cx: &mut Context<'a, 'cfg>, unit: &Unit<'a>) -> String { /// when it was invoked. /// /// The serialized Cargo format will contain a list of files, all of which are -/// relative if they're under `root`. or absolute if they're elsewehre. +/// relative if they're under `root`. or absolute if they're elsewhere. pub fn translate_dep_info( rustc_dep_info: &Path, cargo_dep_info: &Path, diff --git a/src/cargo/sources/path.rs b/src/cargo/sources/path.rs index 433c97d9f..cadb0cffa 100644 --- a/src/cargo/sources/path.rs +++ b/src/cargo/sources/path.rs @@ -443,7 +443,7 @@ impl<'cfg> PathSource<'cfg> { // For package integration tests, we need to sort the paths in a deterministic order to // be able to match stdout warnings in the same order. // - // TODO: Drop collect and sort after transition period and dropping wraning tests. + // TODO: Drop collect and sort after transition period and dropping warning tests. // See // and let mut entries: Vec = fs::read_dir(path)?.map(|e| e.unwrap()).collect(); diff --git a/tests/testsuite/build_script.rs b/tests/testsuite/build_script.rs index 59aee0632..af8f5cc7f 100644 --- a/tests/testsuite/build_script.rs +++ b/tests/testsuite/build_script.rs @@ -2759,7 +2759,7 @@ fn rebuild_only_on_explicit_paths() { } #[test] -fn doctest_recieves_build_link_args() { +fn doctest_receives_build_link_args() { let p = project("foo") .file( "Cargo.toml", diff --git a/tests/testsuite/git.rs b/tests/testsuite/git.rs index d764cc2a3..f1f5f54fb 100644 --- a/tests/testsuite/git.rs +++ b/tests/testsuite/git.rs @@ -161,7 +161,7 @@ fn cargo_compile_offline_with_cached_git_dep() { let rev2 = git::commit(&repo); { - // cache to regisrty rev1 and rev2 + // cache to registry rev1 and rev2 let prj = project("cache_git_dep") .file( "Cargo.toml",